package cn.iocoder.an.module.business.dal.dataobject.equipmentcheckrecord;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.an.framework.mybatis.core.dataobject.BaseDO;

/**
 * 点检记录 DO
 *
 * @author zzy
 */
@TableName(value = "business_equipment_check_record",autoResultMap = true)
@KeySequence("business_equipment_check_record_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EquipmentCheckRecordDO extends BaseDO {

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 设备id
     */
    private Long equipmentId;
    /**
     * 点检人
     */
    private Long checkUser;
    /**
     * 点检时间
     */
    private LocalDateTime checkTime;
    /**
     * 点检结果 1通过 2不通过
     */
    private Integer checkResult;
    /**
     * 点检通过项ID
     *
     * 枚举 {@link TODO check_pass 对应的类}
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Long> checkItemId;

    /**
     * 备注
     */
    private String remark;

    @Schema(description = "点检人")
    private String checkUserName;

}